package com.kirk.cts.core.event;

import java.util.EventObject;

/**
 * <p> CrawlerToolEvent.java </p>
 *
 * @version 1.0.0
 * @Author kirkliu
 * @Date 2020-08-31 19:11
 * @Description 事件对象
 */
public class CrawlerToolEvent extends EventObject {
    private static final long serialVersionUID = 1L;
    /**
     * 事件信息
     */
    private String eventInfo;
    /**
     * 事件类型
     */
    private CrawlerToolEventType eventType;
    /**
     * 事件对象
     */
    private Object eventObject;

    public CrawlerToolEvent(Object source) {
        super(source);
    }

    public CrawlerToolEvent(Object source, CrawlerToolEventType eventType) {
        super(source);
        this.eventType = eventType;
    }

    public CrawlerToolEvent(Object source, CrawlerToolEventType eventType, Object eventObject) {
        super(source);
        this.eventType = eventType;
        this.eventObject = eventObject;
    }

    public CrawlerToolEvent(Object source, CrawlerToolEventType eventType, Object eventObject, String eventInfo) {
        super(source);
        this.eventType = eventType;
        this.eventObject = eventObject;
        this.eventInfo = eventInfo;
    }

    public CrawlerToolEventType getEventType() {
        return eventType;
    }

    public Object getEventObject() {
        return eventObject;
    }

    public String getEventInfo() {
        return eventInfo;
    }

    public void setEventInfo(String eventInfo) {
        this.eventInfo = eventInfo;
    }

}
